package core.communication.message;

import java.util.ArrayList;
import java.util.List;

import core.communication.electionConfiguration.ElectionConfiguration;

public class ElectionConfigurationMessage extends Message {
	private static final long serialVersionUID = -8844115365871917799L;

	Long electionIdentificationField;

	List<ElectionConfiguration> electionConfigurations = new ArrayList<ElectionConfiguration>();

	public ElectionConfigurationMessage(String destinationUri, Long electionIdentificationField, List<ElectionConfiguration> electionConfigurations) {
		super();
		setPriority(MessagePriority.NORMAL);
		setMessageType(MessageType.ElectionConfiguration);
		setDestinationURI(destinationUri);
		this.electionIdentificationField = electionIdentificationField;
		this.electionConfigurations.addAll(electionConfigurations);
		setDirection(Direction.DOWN);
	}

	public Long getElectionIdentificationField() {
		return electionIdentificationField;
	}

	public List<ElectionConfiguration> getElectionConfigurations() {
		return electionConfigurations;
	}
}
